//
//  SeWeiboEntity.m
//  Screen
//
//  Created by Season02 on 7/1/16.
//  Copyright © 2016 Season02. All rights reserved.
//

#import "SeWeiboEntity.h"

@implementation SeWeiboEntity

+(NSDictionary *)mj_replacedKeyFromPropertyName
{
    return @{
             @"unionid" : @"id"
             };
}

-(void)setId:(NSString *)id
{
    _id = id;
    [super setUserId:id];
}

-(void)setGender:(NSString *)gender
{
    if([gender isEqualToString:@"m"])
        [super setSex:@"male"];
    else
        [super setSex:@"female"];
}

-(void)setAvatar_large:(NSString *)avatar_large
{
    _avatar_large = avatar_large;
    [super setHeadimgurl:avatar_large];
}

-(void)setName:(NSString *)name
{
    [super setNickname:name];
}

@end
